package com.yuyue.springFramework.note07.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * 定义配置类，bean注册阶段，判断条件注解的匹配条件为当有Service的实体时解析和注册bean
 */
@Configuration
//bean注册阶段，判断条件注解的匹配条件为当有Service的实体时解析和注册bean
@Conditional(ConfigurationCondition1.class)
public class Configuration11 {
    @Bean
    public String name(){
        return "鱼跃鸟飞";
    }
}
